package demo06;

import java.util.Scanner;

public class zhengshu {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个整数");

        int i1 = sc.nextInt();
        System.out.println("请输入第二个整数");

        int i2 = sc.nextInt();

        int sum = i1 + i2;

        int dum = i1 - i2;
        System.out.println("和为" + sum);
        System.out.println("差为" + dum);

    }
}
